﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Profil.aspx.cs" Inherits="Profil" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Промени Профил</title>
    <link href="css/login.css" rel="stylesheet" type="text/css" /> 
</head>
<body>
    <form id="form1" runat="server">
    <div id="right" style="height:350px; background-color:White; top:150px">
    
    <h2><span class="blue">Профил</span></h2>
    <table>
        <tr>
            <td>Корисничко име: </td>
            <td><asp:Label ID="lblKI" runat="server" Text="Label"></asp:Label></td>
        </tr>
        <tr>
            <td>Лозинка: </td>
            <td>
                <asp:TextBox ID="txtPass" runat="server" ReadOnly="True" TextMode="Password" ValidationGroup="V1"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td>Име и презиме: </td>
            <td><asp:Label ID="lblIP" runat="server" Text="Label"></asp:Label></td>
        </tr>
         <tr>
            <td>
                <asp:Label ID="lblIndeks" runat="server" Visible="false" Text="Индекс:"></asp:Label> </td>
            <td><asp:Label ID="lblInd" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2"><span class="blue" style="font-weight:bold; font-size:14px">Промена на лозинка</span></td>
        </tr>
        <tr>
            <td>Стара лозинка: </td>
            <td><asp:TextBox ID="txtStara" runat="server" TextMode="Password" ValidationGroup="V1"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rf1" runat="server" ErrorMessage="Пополнете го полето за стара лозинка" ControlToValidate="txtStara" Display="None" 
                    ValidationGroup="V1"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="Грешна лозинка. Пробајте повторно" ControlToCompare="txtPass" ControlToValidate="txtStara" Display="None" ValidationGroup="V1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>Нова лозинка: </td>
            <td><asp:TextBox ID="txtNova" runat="server" TextMode="Password" ValidationGroup="V1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNova" Display="None" ErrorMessage="Пополнете го полето за нова лозинка" ValidationGroup="V1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="padding-right:10px;">Потврди нова лозинка: </td>
            <td><asp:TextBox ID="txtNova2" runat="server" TextMode="Password" ValidationGroup="V1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNova2" Display="None" ErrorMessage="Пополнете го полето за потврда на нова лозинка" 
                    ValidationGroup="V1"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNova" ControlToValidate="txtNova2" ErrorMessage="Лозинките не се совпаѓаат" Display="None" 
                    ValidationGroup="V1"></asp:CompareValidator>
            </td>
        </tr>
        <tr><td colspan="2">
            <asp:ValidationSummary ID="vSum" runat="server" ValidationGroup="V1" />
            </td>
        </tr>
        <tr>
        <td colspan="2" align="right" style="padding-top:20px;">
            <asp:Button ID="btnZacuvaj" runat="server" Text="Зачувај промени" onclick="btnZacuvaj_Click" ValidationGroup="V1"/>  
            &nbsp;  &nbsp;  
            <asp:Button ID="btnCancel" runat="server" Text="Откажи" 
                onclick="btnCancel_Click" /></td>
        </tr>
    </table> 
    </div>
    </form>
</body>
</html>
